
package la.foton.atividade.util.exception;

import javax.faces.context.ExceptionHandler;
import javax.faces.context.ExceptionHandlerFactory;

public class ExceptionExceptionHandlerFactory extends ExceptionHandlerFactory
{

   private ExceptionHandlerFactory parent;

   public ExceptionExceptionHandlerFactory(ExceptionHandlerFactory parent)
   {
      this.parent = parent;
   }

   @Override
   public ExceptionHandler getExceptionHandler()
   {
      ExceptionHandler result = parent.getExceptionHandler();
      result = new ExceptionExceptionHandler(result);
      return result;
   }

}
